package com.anguin.mylibrary.mapper;

import com.anguin.mylibrary.entity.UserEntity;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserMapper
{

    UserEntity findByUsername(String username);

    Integer insertUser(UserEntity user);

    int updateLastLogin(Integer userId);

    int updateUser(UserEntity user);

    int changePassword(int userId, String password);

    UserEntity findByEmail(String email);

    UserEntity findByPhoneNumber(String phoneNumber);

    UserEntity findByUserId(int uid);
}
